how to calculate value of sales from mark-up adn cost of sales